package com.achcorp.sarch.clients.thick;

import java.util.List;

import javax.swing.table.AbstractTableModel;

import com.achcorp.sarch.core.dao.DocumentDAO;
import com.achcorp.sarch.core.domain.DocumentImp;

public class DocsModel extends AbstractTableModel {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private DocumentDAO docDao;
	public DocumentDAO getDocDao() {
		return docDao;
	}

	public void setDocDao(DocumentDAO docDao) {
		this.docDao = docDao;
	}

	List<DocumentImp> docs;

	public DocsModel(DocumentDAO ddao) {
		docDao = ddao;
		//docs = docDao.getAllDocuments();

	}

	public Class<?> getColumnClass(int columnIndex) {
		return null;//DocumentImp.getColumnClass(columnIndex);
	}

	public int getColumnCount() {
		return 0;//DocumentImp.COLUMN_COUNT;
	}

	public String getColumnName(int columnIndex) {
		return null;//DocumentImp.getColumnName(columnIndex);

	}

	public void fireTableDataChanged(){
		
	//	docs= docDao.getAllDocuments();
		super.fireTableDataChanged();
	}
	public int getRowCount() {
		return docs.size();
	}

	public Object getValueAt(int rowIndex, int columnIndex) {
		DocumentImp doc = docs.get(rowIndex);
		return null;//doc.getColumnValue(columnIndex);
		

	}

	public boolean isCellEditable(int rowIndex, int columnIndex) {
		return false;
	}



}
